{% extends 'org-base.html' %}
{% block title %}机构课程{% endblock %}
{% block right_form %}

<div class="right companycenter layout" >
		<div class="head">
			<h1>机构课程</h1>
		</div>

		<div class="brief group_list">
 {% for course in all_courses %}
                <div class="module1_5 box">
                    <a class="comp-img-box" href="{% url 'course:detail' course.id %}">

                        <img width="214" height="195" src="{{ course.image.url }}"/>
                    </a>
                    <div class="des">
                        <a href="{% url 'course:detail' course.id %}"><h2>{{ course.name }}</h2></a>
                        <span class="fl">课时：<i class="key">{{ couse.learn_times }}</i></span>
                        <span class="fr">学习人数：{{ course.students }}</span>
                    </div>
                    <div class="bottom">
                        <span class="fl">{{ course_org.name }}</span>
                         <span class="star fr  notlogin
                            " data-favid="13" data-fav-type="4">
                            {{ course.fav_nums }}
                        </span>
                    </div>
                </div>
                {% endfor %}
		</div>


    <div class="pageturn">
            <ul class="pagelist">
             {% if all_courses.has_previous  %}
                 <li class="long"><a href="?page={{all_courses.previous_page_number}}">上一页</a></li>
            {%endif%}

                {% for i in   all_courses.paginator.page_range %}
                 {%if i == all_courses.number  %}
                     <li class="active"><a href="?page={{ i }}">{{i }}</a></li>
                    {% else %}
                      <li><a href="?page={{ i }}" class="page">{{ i }}</a></li>
                    {% endif %}
                {% endfor %}
                {% if all_courses.has_next  %}
                 <li class="long"><a href="?page={{all_courses.next_page_number}}">下一页</a></li>
            {%endif%}
            </ul>
        </div>
	</div>




{% endblock %}
{% block page_path %}
机构课程

{% endblock %}